package com.gitee.empty_null.config;

import com.gitee.empty_null.properties.SparkChatProperties;
import com.gitee.empty_null.spark.SparkChatClient;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author xuhainan
 * @date 2023/12/12 17:48
 * @region hefei
 */
@ComponentScan(basePackages = "com.gitee.empty_null.**")
@EnableConfigurationProperties(value = SparkChatProperties.class)
public class SparkChatAutoConfiguration {

    @Bean
    public SparkChatClient sparkChatClient(SparkChatProperties sparkChatProperties) {
        return new SparkChatClient(sparkChatProperties);
    }

}
